package com.aspose.cells;

class zbgb extends zcj {
   zbgb(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   void a() {
      float var1 = this.g;
      float var2 = this.h;
      float var3 = this.e.k().h();
      float var4 = this.e.k().i();
      float var5 = 0.0F;
      if (this.e.l.a.size() > 0) {
         var5 = 1.0F - com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
      } else {
         var5 = 0.17F;
      }

      com.aspose.cells.b.a.b.zm var6 = zbul.a(this.e.m());
      float var7 = var5 * var3;
      com.aspose.cells.b.a.b.a.zf var8 = this.a.e();
      this.a.a(4);
      com.aspose.cells.b.a.b.zo[] var15 = new com.aspose.cells.b.a.b.zo[5];
      com.aspose.cells.b.a.b.zo[] var16 = new com.aspose.cells.b.a.b.zo[3];
      com.aspose.cells.b.a.b.zo var9;
      com.aspose.cells.b.a.b.zo var10;
      com.aspose.cells.b.a.b.zo var11;
      com.aspose.cells.b.a.b.zo var12;
      com.aspose.cells.b.a.b.zo var13;
      com.aspose.cells.b.a.b.zo var14;
      switch(this.e.a) {
      case 1:
         var9 = new com.aspose.cells.b.a.b.zo(var1, var2);
         var10 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2);
         var11 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2 + var4 - var7);
         var12 = new com.aspose.cells.b.a.b.zo(var1 + var3 - var7, var2 + var4);
         var13 = new com.aspose.cells.b.a.b.zo(var1, var2 + var4);
         var14 = new com.aspose.cells.b.a.b.zo(var1 + var3 - 0.8F * var7, var2 + var4 - 0.8F * var7);
         var15[0] = var9;
         var15[1] = var10;
         var15[2] = var11;
         var15[3] = var12;
         var15[4] = var13;
         var16[0] = var11;
         var16[1] = var12;
         var16[2] = var14;
         break;
      case 2:
         var9 = new com.aspose.cells.b.a.b.zo(var1, var2);
         var10 = new com.aspose.cells.b.a.b.zo(var1 + var3 - var7, var2);
         var11 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2 + var7);
         var12 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2 + var4);
         var13 = new com.aspose.cells.b.a.b.zo(var1, var2 + var4);
         var14 = new com.aspose.cells.b.a.b.zo(var1 + var3 - 0.8F * var7, var2 + 0.8F * var7);
         var15[0] = var9;
         var15[1] = var10;
         var15[2] = var11;
         var15[3] = var12;
         var15[4] = var13;
         var16[0] = var10;
         var16[1] = var11;
         var16[2] = var14;
         break;
      case 3:
         var9 = new com.aspose.cells.b.a.b.zo(var1 + var7, var2);
         var10 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2);
         var11 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2 + var4);
         var12 = new com.aspose.cells.b.a.b.zo(var1, var2 + var4);
         var13 = new com.aspose.cells.b.a.b.zo(var1, var2 + var7);
         var14 = new com.aspose.cells.b.a.b.zo(var1 + 0.8F * var7, var2 + 0.8F * var7);
         var15[0] = var9;
         var15[1] = var10;
         var15[2] = var11;
         var15[3] = var12;
         var15[4] = var13;
         var16[0] = var9;
         var16[1] = var13;
         var16[2] = var14;
         break;
      case 4:
         var9 = new com.aspose.cells.b.a.b.zo(var1, var2);
         var10 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2);
         var11 = new com.aspose.cells.b.a.b.zo(var1 + var3, var2 + var4);
         var12 = new com.aspose.cells.b.a.b.zo(var1 + var7, var2 + var4);
         var13 = new com.aspose.cells.b.a.b.zo(var1, var2 + var4 - var7);
         var14 = new com.aspose.cells.b.a.b.zo(var1 + 0.8F * var7, var2 + var4 - 0.8F * var7);
         var15[0] = var9;
         var15[1] = var10;
         var15[2] = var11;
         var15[3] = var12;
         var15[4] = var13;
         var16[0] = var12;
         var16[1] = var13;
         var16[2] = var14;
      }

      if (!this.e.l().a()) {
         com.aspose.cells.b.a.b.a.ze var17 = new com.aspose.cells.b.a.b.a.ze();
         var17.b(var15);
         com.aspose.cells.b.a.b.zc var18 = zbul.a(this.e.l(), var17);
         this.a.a(var18, var15);
         com.aspose.cells.b.a.b.a.ze var19 = new com.aspose.cells.b.a.b.a.ze();
         var19.b(var16);
         com.aspose.cells.b.a.b.zc var20 = zbul.a(this.e.l(), var19, 0.8F, 0.0F);
         this.a.a(var20, var16);
      }

      if (!this.e.m().a()) {
         this.a.c(var6, var15);
         this.a.c(var6, var16);
      }

      super.b();
      this.a.a(var8);
   }
}
